<h2><?php echo $this->tabla; ?></h2>
<?php if(isset($this->data) && count($this->data)): ?>
<table border="1" >
    <tr>
        <?php for($x = 0; $x < count($this->columns); $x++): ?>
            <th><?php echo $this->columns[$x]; ?></th>
        <?php endfor; ?>
    </tr>
    <?php for($x = 0; $x < count($this->data); $x++): ?>
    <tr>
        <?php for($y = 0; $y < count($this->data[$x]); $y++): ?>
            <td><?php echo $this->data[$x][$y]; ?></td>
        <?php endfor; ?>
        <td><a><?php echo $this->data[$x]['id']; ?></a></td>
    </tr>
    <?php endfor; ?>
</table>
<?php else: ?>
    <p><strong>No hay datos</strong></p>
<?php endif; ?>